package StudyCode.summary.Basic;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */

public class EnumImplementsInterfaceTest {
	public static void main(String[] args) {
		for (TestInterface cmd : EnumImplementsInterface.values()) {
			cmd.execute();
		}
	}
}

interface TestInterface {
	void execute();
}

enum EnumImplementsInterface implements TestInterface {
	START {
		public void execute() {
			System.out.println("开始上班");
		}
	},
	END {
		public void execute() {
			System.out.println("下班了");
		}
	},
	HOME {
		public void execute() {
			System.out.println("回到家了");
		}
	};

	public abstract void execute();
}




